package com.knife.permission.entity;

import java.util.StringJoiner;

/**
 * 数据权限维度
 *
 * @author tianhao.luo@hand-china.com
 */
public class OrderColumn {
    /**
     * 单据表别名
     */
    public String orderTableAlias;
    /**
     * 单据表做过滤的列名
     */
    public String orderTableColumn;
    /**
     * 基础维度表名
     */
    public String baseTableName;
    /**
     * 过滤的字段
     */
    public String baseTableFilterColumn;
    /**
     * 连接字段
     */
    public String baseTableJoinOnColumn;
    /**
     * 基础表是否模糊匹配
     */
    public Integer baseTableLikeFlag;
    /**
     * 维度
     */
    public Integer baseTableDimensionFlag;


    @Override
    public String toString() {
        return new StringJoiner(", ", OrderColumn.class.getSimpleName() + "[", "]")
                .add("orderTableAlias='" + orderTableAlias + "'")
                .add("orderTableColumn='" + orderTableColumn + "'")
                .add("baseTableName='" + baseTableName + "'")
                .add("baseTableJoinOnColumn='" + baseTableJoinOnColumn + "'")
                .add("baseTableLikeFlag='" + baseTableLikeFlag + "'")
                .add("baseTableFilterColumn='" + baseTableFilterColumn + "'")
                .add("baseTableDimensionFlag='" + baseTableDimensionFlag + "'")
                .toString();
    }

    public String getOrderTableAlias() {
        return orderTableAlias;
    }

    public void setOrderTableAlias(String orderTableAlias) {
        this.orderTableAlias = orderTableAlias;
    }

    public String getOrderTableColumn() {
        return orderTableColumn;
    }

    public void setOrderTableColumn(String orderTableColumn) {
        this.orderTableColumn = orderTableColumn;
    }

    public String getBaseTableName() {
        return baseTableName;
    }

    public void setBaseTableName(String baseTableName) {
        this.baseTableName = baseTableName;
    }

    public String getBaseTableJoinOnColumn() {
        return baseTableJoinOnColumn;
    }

    public void setBaseTableJoinOnColumn(String baseTableJoinOnColumn) {
        this.baseTableJoinOnColumn = baseTableJoinOnColumn;
    }

    public Integer getBaseTableLikeFlag() {
        return baseTableLikeFlag;
    }

    public void setBaseTableLikeFlag(Integer baseTableLikeFlag) {
        this.baseTableLikeFlag = baseTableLikeFlag;
    }

    public String getBaseTableFilterColumn() {
        return baseTableFilterColumn;
    }

    public void setBaseTableFilterColumn(String baseTableFilterColumn) {
        this.baseTableFilterColumn = baseTableFilterColumn;
    }

    public Integer getBaseTableDimensionFlag() {
        return baseTableDimensionFlag;
    }

    public void setBaseTableDimensionFlag(Integer baseTableDimensionFlag) {
        this.baseTableDimensionFlag = baseTableDimensionFlag;
    }
}
